@extends('layouts.app')

@section('title', translate('个人资料'))
@section('content')
@include('common.header', ['title'=> translate('个人资料')])
<link href="/fontpage/css/xougaiziliao.css" rel="stylesheet">
<link rel="stylesheet" type="text/css" href="/fontpage/css/menu_elastic.css">
<link href="/fontpage/css/bootstrap.min.css" rel="stylesheet">
<style>
        .x_b{width: 30%;float: left;}
.xingbie{width: 75%;}
        .sjh{float: left;}
        .gender1{margin-left: -50% !important;position: relative;top:6%;border-radius: 100%;}
        .gender2{position: relative;top:6%;border-radius: 100%;}
        .xb_wz{height: 30px;line-height: 30px;position: relative;top: -3px;}
        .checkbox-inline{padding-left: 0;}
    </style>
<form class="form-horizontal" id="ll" method="POST" action="{{ route('toInfo') }}">
{{ csrf_field() }}
<div class="usercenter  accdv">
    <div class="row">
        <div class="col-md-2">
            {{translate('昵称')}}：
        </div>
        <div class="col-md-10">
            <input type="text" name="nickname" value="{{Auth::user()->nickname}}" class="form-control" placeholder="请输入昵称">
        </div>
    </div>
    <div class="row">
        <div class="col-md-2">
           {{translate('真实姓名')}}：
        </div>
        <div class="col-md-10">
            <input type="text" name="realname" value="{{Auth::user()->realname}}" class="form-control" placeholder="请输入姓名">
        </div>
    </div>
    <div class="row">
        <div class="col-md-2 x_b">
            {{translate('性别')}}：
        </div>
        <div class="col-md-10 xingbie">

            <label class="checkbox-inline">
                <input type="radio" name="sex" id="optionsRadios3" value="1" class="gender1 gen"
                @if(Auth::user()->sex==1)
                checked="checked"
                @endif
                >
                <span class="xb_wz">{{translate('男')}}</span>
            </label>

            <label class="checkbox-inline">
                <input type="radio" name="sex" id="optionsRadios4" value="2" class="gender2 gen" 
                @if(Auth::user()->sex==2)
                checked="checked"
                @endif
                >
                <span class="xb_wz">{{translate('女')}}</span>
            </label>

        </div>
    </div>
    <div class="row">
        <div class="col-md-2 sjh">
            {{translate('手机号')}}：
        </div>
        <div class="col-md-10">
            <div style="margin-left: -5%;display: inline-block;">
            {{Auth::user()->mobile}}
            </div>
            

        </div>
    </div>
    
    <div class="row">
        <div class="col-md-2">
            {{translate('邮箱')}}：
        </div>
        <div class="col-md-10">
            <input type="text" class="form-control" name="email" value="{{Auth::user()->email}}" placeholder="请输入邮箱">
        </div>
    </div>
        
    

    <div class="row">
        <div class="col-md-2">
            {{translate('生日')}}：
        </div>
        <div class="col-md-10">
            <input type="text" name="birthday" value="{{Auth::user()->birthday}}" class="form-control" onclick="WdatePicker({dateFmt:'yyyy-MM-dd'})">
        </div>
    </div>

        
    
    <div class="row">
        <div class="col-md-2"></div>
        <div class="col-md-10">
            <button type="submit" id="sub" class="btn btn-danger btn-block btn-lg">
                {{translate('确定')}}
            </button>
        </div>
    </div>
</div>
</form>
<link href="/backpage/Widget/My97DatePicker/skin/WdatePicker.css" rel="stylesheet" type="text/css">
<script type="text/javascript" src="/backpage/Widget/My97DatePicker/WdatePicker.js"></script>
<script type="text/javascript">
$(function(){
	@if(session('status') == 1)
		layer.msg("{{translate('更新成功')}}");
	@endif
})
</script>
@endsection
@section('footer')
     @include('common.footer')
@stop
